<?php

/* $Id$ */

require_once "lib/BaseLibrary.class.php";

class BaseApplication extends BaseLibrary {

	private $mysql_connection_class		= null;

	private $profile_class			= null;

	private $err_message			= null;
	private $status_message			= null;

	function BaseApplication( $appClassName, $neededPHPVersion, $die_msg_version_failure, $neededExtensions_arr ) {
		/* Superklasse aufrufen */
		$this->BaseLibrary( $appClassName, $neededExtensions_arr );


		/* PHP Version Abfragen */

		/* Ueberpruefung ob Umgebung stimmig */
		$this->base_environment_phpversion_neededAtLeastOrDie_html( $neededPHPVersion, $die_msg_version_failure );

	}

	function getMySQLConnection_class() {
		return $this->mysql_connection_class;
	}

	function setMySQLConnection_class( $class ) {
		$this->mysql_connection_class = $class;
	} 

	function getProfile_class() {
		return $this->profile_class;
	}

	function setProfile_class( $class ) {
		$this->profile_class = $class;
	}

	function getErrorMessage() {
		return $this->err_message;
	}

	function setErrorMessage( $errmsg, $showtime ) {
		/* c -> ISO 8601 ab PHP5 */
		$this->err_message = $errmsg.(($showtime) ? " (".date("c", time()).")": "");

		$this->getTemplateProcessor_class()->registerKeyword("{error_message}", $this->getErrorMessage());
	}

	function getStatusMessage() {
		return $this->status_message;
	}

	function setStatusMessage( $msg, $showtime ) {
		/* c -> ISO 8601 ab PHP5 */
		$this->status_message = $msg.(($showtime) ? " (".date("c", time()).")": "");

		$this->getTemplateProcessor_class()->registerKeyword("{status_message}", $this->getStatusMessage());
	}




}



?>